]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowPreview: Adapt to ClutterActor API changes
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 19 Jun 2020 12:13:12 +0000 (14:13 +0200)
committerverdre <jonas@dressler.it>
Tue, 7 Jul 2020 16:51:33 +0000 (16:51 +0000)
The API of clutter_actor_allocate_preferred_size() changed with
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1310, so adapt to
this change and pass the origin to the function.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1322

js/ui/windowPreview.js

index 48d42c87d3bab0965f3ee9e539f14f824cbdd06e..5630ba5e31c238dc0a4154dcc58c103f27e57bd7 100644 (file)
@@ -97,7 +97,7 @@ var WindowPreviewLayout = GObject.registerClass({
 
                 child.allocate(childBox);
             } else {
-                child.allocate_preferred_size();
+                child.allocate_preferred_size(0, 0);
             }
         }
     }